<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
    <style>
        .box{
            width: 100px;
            height: 100px;
            background-color: red;
        }
    </style>
</head>
<body>
    <!-- <ul>
        <li>11</li>
        <li>22</li>
        <li>33</li>
    </ul> -->

    <div class="box"></div>
    <button>点击</button>
    <script>
        // $("li").on("click",function(){
        //     console.log(111);
        // })
        $("button").click(function(){
            $(".box").animate({width:300,height:300},1000,function(){
                console.log("结束了");
            })
        })



    </script>
</body>
</html>